<div id="product-list" >
  <h1>Link Listing</h1>
  <table cellpadding="5" cellspacing="0" >
    <% for link in @links %>
      <tr valign="top" class="<%= cycle('list-line-odd', 'list-line-even') %>" >
      
        <td width="50%">
          <span class="list-title" ><%= link.name %></span>
        </td>
        
        <td width="50%">
          <span class="list-title" ><%= link_to link.url, link.url %></span>
        </td>
        
        <td class="list-actions" >
          <%= link_to 'Up', {:action => :move_up, :id => link}, :confirm => "Are you sure", :method => "post" %><br/>
          <%= link_to 'Down', {:action => :move_down, :id => link}, :confirm => "Are you sure", :method => "post" %>
        </td>
      
        <td class="list-actions" >
          <%= link_to 'Edit', :action => 'update', :id => link %><br/>
          <%= link_to 'Destroy', { :action => 'delete', :id => link },
            :confirm => "Are you sure?" ,
            :method => "post" %>
        </td>
      </tr>
    <% end %>
  </table>
  <%= will_paginate @links %>
</div>
<br />
<%= link_to "New Link", :action => :create %>